<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sj" uri="/struts-jquery-tags"%>
<%@ page language="java" contentType="text/html;charset=utf-8"%>
<%@ page import="com.guhappy.model.user.WebUser"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Guhappy Inc.</title>
<sj:head locale='en' />
<link rel="stylesheet" href="css/style.css" type="text/css"
	media="screen, projection" />
<link rel="stylesheet" href="css/jquery.fancybox.css?v=2.1.3" type="text/css" media="screen" />
<script src="http://code.jquery.com/jquery-migrate-1.0.0.js"></script>
<script src="js/jquery.jqGrid.min.js" type="text/javascript"></script>
<script
	src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
<script src="js/guhappy.js" type="text/javascript"></script>
<script src="js/jquery.fancybox.pack.js?v=2.1.3" type="text/javascript"></script>
<script type="text/javascript">
	$(document).ready(function() {
		jQuery.fn.extend({
	   		 propAttr: $.fn.prop || $.fn.attr
	   		});
		$("a#login").fancybox({'afterClose': function() {
   		 $('#signOnAction span[class=errorMessage]').each(function() {
   		        $(this).text("");
   		    });
   		 $('#signOnAction ul[class=errorMessage] li span').each(function() {
		        $(this).text("");
		    		});
   		 $("#signOnAction input[name=password]").val("");
		     $("#signOnAction input[name=username]").val("");
		}
		});
	   	$("a#regist").fancybox({'afterClose': function() { 
	      		 $('#registrationAction span[class=errorMessage]').each(function() {
			        $(this).text("");
			    });
		 		 $('#registrationAction ul[class=errorMessage] li span').each(function() {
				        $(this).text("");
			    		});
		 		 $("#registrationAction input[name=password]").val("");
			     $("#registrationAction input[name=username]").val("");
			     $("#registrationAction input[name=email]").val("");
			     $("#registrationAction input[name=repassword]").val("");
			}
			});
	   	$("#signOnAction").submit(function() { return false; });
	   	$("#registrationAction").submit(function() { return false; });
	   	$("#forgetpasswordAction").submit(function() { return false; });
	   	
	   	$("#userLogin2").click(function() {
	   		   $.fancybox({
	   		       'href': '#userLogin',
	   		       'padding' : 20
	   		   });
	   		});
	   	$("#regist2").click(function() {
			   $.fancybox({
			       'href': '#userReg',
			       'padding' : 20
			   });
			});
	   	$("#forget_pass").click(function() {
	 		   $.fancybox({
	 		       'href': '#reset_pass',
	 		       'padding' : 20
	 		   });
	 		});
	   	/* use ajax instead to do the submit  */
	   	
	   	$("#buttonReg").click(function(){
	   		$.ajax({
	   			  type: "POST",
	   			  url: "signupAction.action",
	   			  cache: false,
	   			  data: { username: $("#registrationAction :input[name='username']").val(), password: $("#registrationAction :input[name='password']").val(), repassword: $("#registrationAction :input[name='repassword']").val(), email: $("#registrationAction :input[name='email']").val()}
	  				  }).done(function( msg ) {
	   			  $("#userReg").html(msg);
	   			});
	   	});
	   	
	   	$("#userSubmit").click(function(){
	   		$.ajax({
	   			  type: "POST",
	   			  url: "signOnAction.action",
	   			  cache: false,
	   			  data: { username: $("#signOnAction :input[name='username']").val(), password: $("#signOnAction :input[name='password']").val()}
	  				  }).done(function( msg ) {
	   			   $("#userLogin").html(msg); 
	   			});
	   	});
	   	
	   	
	   	$("#buttonReset").click(function(){
	   		$.ajax({
	   			  type: "POST",
	   			  url: "forgetpasswordAction.action",
	   			  cache: false,
	   			  data: { email: $("#forgetpasswordAction :input[name='email']").val()}
	  				  }).done(function( msg ) {
	   			  $("#reset_pass").html(msg);
	   			});
	   	});
		$("ul#ticker02").liScroll({
			travelocity : 0.15
		});
	});
</script>
</head>
<body>
	<div class="page_margins">
		<div id="page-wrap">
			<div id="header">
				<a id="main-logo" title="GuHappy" href="/"> </a>
				<div id="header-nav" class="clearfix">
					<table>
						<tr>
							<td><s:url id="stock" value="stock.action" /> <sj:a
									id="stocklink" href="%{stock}" targets="main" button="true"
									buttonIcon="ui-icon-gear">
				      Stock
				    </sj:a> <s:url id="contest" value="contest.action" /> <sj:a
									id="contestlink" href="%{contest}" targets="main" button="true"
									buttonIcon="ui-icon-gear">
				      Contest
				    </sj:a> <s:url id="blog" value="blog.action" /> <sj:a id="bloglink"
									href="%{blog}" targets="main" button="true"
									buttonIcon="ui-icon-gear">
				      BLOG
				    </sj:a> <s:url id="report" value="report.action" /> <sj:a
									id="reportlink" href="%{report}" targets="main" button="true"
									buttonIcon="ui-icon-gear">
				      Report
				    </sj:a></td>
							<td align="left" valign="top" class="myArea"
								style="padding-right: 10px; color: #D4EFF6">Welcome to: <s:property
									value="%{#session.webUser.userName}" /> &nbsp;|&nbsp; <s:url
									action="loginOffAction.action" var="aURL" /> <s:a
									href="%{aURL}" style="padding-right: 10px; color:#D4EFF6">Logout</s:a>
								&nbsp;|&nbsp;
							</td>
						</tr>
					</table>
				</div>
			</div>
			<div id="marqueebox0">
				<ul id="ticker02">
					<li><span>10/10/2007</span><a href="#">The first thing ...</a></li>
					<li><span>10/10/2007</span><a href="#">End up doing is ...</a></li>
					<li><span>10/10/2007</span><a href="#">The code that you
							...</a></li>
					<!-- eccetera -->
				</ul>
			</div>
			<div id="main">
					<div id="guhappy_investing_content">
					<div class="rtq_div">
					<div>
						<div class="guhappy_rt_quote_summary">
							<div class="hd">
								<div class="title">
									<h2><s:property value="%{stockbean.company.name}" />( <s:property value="%{stockbean.sticker}" /> )</h2>
									<span class="rtq_exch"> <span class="rtq_dash">-</span>
										<s:property value="%{stockbean.company.industry_name}" />
									</span>
								</div>
							</div>
							<div class="guhappy_rt_quote_summary_rt_top">
								<p>
									<span class="time_rtq_ticker"> <span id="yfs_l10_appl">0.00</span>
									</span> <span class=" time_rtq_content"> <span
										id="yfs_c63_appl"> <span
											class="guhappy-price-no-clr-change">0.00</span>
									</span> <span id="yfs_p43_appl"> <span
											class="guhappy-price-no-clr-change">(0.00%)</span>
									</span>
									</span>
								</p>
							</div>
							<div id="guhappy_toolbox_mini_rtq"></div>
						</div>
					</div>
					</div>
						<div class="guhappy-u first guhappy-start-content">
							<div class="guhappy_quote_summary">
								<div id="guhappy_quote_summary_data" class="rtq_table">
									<table id="table1">
										<tbody>
											<tr>
												<th scope="row" width="48%">Prev Close:</th>
												<td class="yfnc_tabledata1"><s:property
														value="%{stockbean.close_price}" /></td>
											</tr>
											<tr>
												<th scope="row" width="48%">Open:</th>
												<td class="yfnc_tabledata1"><s:property
														value="%{stockbean.open_price}" /></td>
											</tr>
											<tr>
												<th scope="row" width="48%">Ask:</th>
												<td class="yfnc_tabledata1"><s:property
														value="%{stockbean.curr_price}" /></td>
											</tr>
											<tr>
												<th scope="row" width="48%">Last Price:</th>
												<td class="yfnc_tabledata1"><s:property
														value="%{stockbean.last_price}" /></td>
											</tr>
											<tr>
												<th scope="row" width="48%">Beta:</th>
												<td class="yfnc_tabledata1">N/A</td>
											</tr>
										</tbody>
									</table>
									<table id="table2">
										<tbody>
											<tr>
												<th scope="row" width="48%">Outstanding Shares:</th>
												<td class="yfnc_tabledata1"><span id="yfs_j10_esl.to"><s:property
														value="%{stockbean.outstanding_shares}" /></span></td>
											</tr>
											<tr>
												<th scope="row" width="48%">P/E <span class="small">(ttm)</span>:
												</th>
												<td class="yfnc_tabledata1"><s:property
														value="%{stockbean.pe_ratio}" /></td>
											</tr>
											<tr>
												<th scope="row" width="48%">EPS <span class="small">(ttm)</span>:
												</th>
												<td class="yfnc_tabledata1"><s:property
														value="%{stockbean.eps}" /></td>
											</tr>
											<tr class="end">
												<th scope="row" width="48%">Div &amp; Yield:</th>
												<td class="yfnc_tabledata1"><s:property
														value="%{stockbean.dividend}" /></td>
											</tr>
										</tbody>
									</table>
								</div>
							</div>
							<div id="ecn_warning">Quotes delayed, except where
								indicated otherwise. Currency in CAD.</div>
							<div id="guhappy_headlines" class="guhappy_quote_headline">
								<div class="hd">
									<h2 class="inline">Headlines</h2>
								</div>
								<div class="bd">
									<ul>
										<li><a
											href="http://finance.yahoo.com/news/enghouse-q4-2012-earnings-release-220000933.html">Enghouse
												Q4 2012 Earnings Release and Conference Call</a><cite>Marketwire<span>(Thu
													Dec 6)</span></cite></li>
										<li><a
											href="http://finance.yahoo.com/news/enghouse-q4-2012-earnings-release-220000078.html">Enghouse
												Q4 2012 Earnings Release and Conference Call</a><cite>Marketwire<span>(Thu
													Dec 6)</span></cite></li>
										<li><a
											href="http://finance.yahoo.com/news/enghouse-systems-acquires-albatross-scandinavia-220000577.html">Enghouse
												Systems Acquires Albatross Scandinavia AB</a><cite>Marketwire<span>(Mon
													Dec 3)</span></cite></li>
										<li><a
											href="http://us.rd.yahoo.com/finance/external/forbes/SIG=139v4c3ih/*http://www.forbes.com/sites/dividendchannel/2012/11/12/reminder-enghouse-systems-goes-ex-dividend-soon/?partner=yahootix">Reminder
												- Enghouse Systems Goes Ex-Dividend Soon</a><cite>at
												Forbes<span>(Mon Nov 12)</span>
										</cite></li>
										<li><a
											href="http://finance.yahoo.com/news/enghouse-systems-acquires-visionutveckling-ab-080201689.html">Enghouse
												Systems Acquires Visionutveckling AB</a><cite>Thomson
												Reuters ONE<span>(Fri Nov 2)</span>
										</cite></li>
										<li><a
											href="http://finance.yahoo.com/news/enghouse-systems-acquires-visionutveckling-ab-123416360.html">Enghouse
												Systems Acquires Visionutveckling AB</a><cite>Marketwire<span>(Thu
													Nov 1)</span></cite></li>
										<li><a
											href="http://finance.yahoo.com/news/enghouse-systems-acquires-visionutveckling-ab-123413763.html">Enghouse
												Systems Acquires Visionutveckling AB</a><cite>Marketwire<span>(Thu
													Nov 1)</span></cite></li>
									</ul>
								</div>
								<div class="ft">
									<a class="view_more"
										href="/q/h?s=ESL.TO&amp;t=2012-12-06T17:00:00-05:00"> »
										More Headlines for ESL.TO</a>
								</div>
							</div>
							<div id="guhappy_press_releases" class="guhappy_quote_headline">
								<div class="hd">
									<h2>Press Releases</h2>
								</div>
								<div class="bd">
									<ul>
										<li><a
											href="http://finance.yahoo.com/news/enghouse-q4-2012-earnings-release-220000933.html">Enghouse
												Q4 2012 Earnings Release and Conference Call</a><cite>Marketwire<span>(Thu
													Dec 6)</span></cite></li>
										<li><a
											href="http://finance.yahoo.com/news/enghouse-q4-2012-earnings-release-220000078.html">Enghouse
												Q4 2012 Earnings Release and Conference Call</a><cite>Marketwire<span>(Thu
													Dec 6)</span></cite></li>
										<li><a
											href="http://finance.yahoo.com/news/enghouse-systems-acquires-albatross-scandinavia-220000577.html">Enghouse
												Systems Acquires Albatross Scandinavia AB</a><cite>Marketwire<span>(Mon
													Dec 3)</span></cite></li>
									</ul>
								</div>
								<div class="ft"></div>
							</div>
							<div id="guhappy-mustread" class="guhappy_quote_headline">
								<div class="hd">
									<h2><s:text name="contest_record" /></h2>
									<span class="time_rtq_ticker"> <span id="yfs_l10_appl">
									<s:text name="stock_attends" /><s:property value="%{stockrecord.total_contest_attend}" />,
									<s:text name="stock_wins" /><s:property value="%{stockrecord.total_win}" />,
									<s:text name="stock_picks" /><s:property value="%{stockrecord.total_pick}" /></span></span>
								</div>
								<div class="bd">

								</div>
							</div>
						</div>
						<div class="guhappy-u" style="width: 300px; float: left;">
							<div class="guhappy_summary_chart" style="float: none;">
								<div class="chart">
									<img width="300" height="180" alt="#" src="<s:property value="%{stockbean.chartUrlSmall}" />" />
								</div>
							</div>
							<div class="guhappy_summary_chart" style="float: none;">
								<div class="chart">
									<img width="300" height="180" alt="#" src="<s:property value="%{stockbean.chartUrlLarge}" />" />
								</div>
							</div>
							<div class="guhappy-u" style="width: 300px; float: none; margin-top:70px; margin-left:70px;">
								<a class="guhappy_a_link_button" id="login" href="#userLogin">I want to Play</a>
								<!-- hidden inline form -->
								<div style="display:none">
								<div id="userLogin" style="height:auto; width:600px">
								<form id="signOnAction" action="signOnAction.action" method="post">
							            <div class="register-title">User Login</div>
								        <div class="register-login">
											Not a registered user？
										<a id ="regist2" href="#" ><s:text name="Regist_user"/></a><br />
											Forget your password？
										<a id="forget_pass" href="#" ><s:text name="forgetPassword"/></a>
										</div>
								        <div class="register-line">
											<div class="register-name">User Name</div>
											<div class="register-input">		            
										   	<s:textfield 
									     		id="username" 
									     		name="username" 
									     	/>
											</div>
											<div id="notice_uname" class="register-notice"></div>
										</div>
										<div class="register-line">
											<div class="register-name">Password</div>
											<div class="register-input">		            
										   	  <s:password id="password" name="password"/>
											</div>
											<div id="notice_uname" class="register-notice"></div>
										</div>	
										<s:actionerror cssStyle="text-align:left;color:red"/> 						       
								       <div class="register-line">
											<div class="register-submit">
			            					<input type="button" value="submit" id="userSubmit"/>
											</div>
										</div>
									</form>
								    </div>
								     <!-- hidden inline form -->
									<div id="userReg" style="height:auto; width:600px">
									<form id="registrationAction" action="signupAction.action" method="post">
		
								            <div class="register-title"><s:text name ="regist"/></div>
								            
									        <div class="register-login">
												Already a registered user？
											<a id ="userLogin2" href="#" ><s:text name="go_to_login"/></a>
											</div>
									        <div class="register-line">
												<div class="register-name"><s:text name ="username"/></div>
												<div class="register-input">		            
											   	<s:textfield 
										     		id="username" 
										     		name="username" 
										     	/>
												</div>
											</div>
											 <div class="register-line">
												<div class="register-name"><s:text name ="email"/></div>
												<div class="register-input">		            
											   	<s:textfield 
										     		id="email" 
										     		name="email" 
										     	/>
												</div>
											</div>
											<div class="register-line">
												<div class="register-name"><s:text name ="password"/></div>
												<div class="register-input">		            
											   	  <s:password id="password" name="password"/>
												</div>									
											</div>	
											<div class="register-line">
												<div class="register-name"><s:text name ="repassword"/></div>
												<div class="register-input">		            
											   	  <s:password id="repassword" name="repassword"/>
												</div>									
											</div>	
											<div class="register-line">
												<div class="register-name"><input type="checkbox" id="ischeck"/></div>
												<div class="register-input">		            
											   	  <s:text name="agreement"/>
												</div>
											</div>
											<s:actionerror cssStyle="text-align:left;color:red"/> 						       
									        <div class="register-line">
												<div class="register-submit">
				            					<input type="button" value="submit" id="buttonReg"/>
												</div>
											</div>
										</form>
									    </div>  
									    <div id="reset_pass" style="height:auto; width:600px">
										<form id="forgetpasswordAction" action="forgetpasswordAction.action" method="post">
								            <div class="register-title"><s:text name ="forgetPassword"/></div>
											 <div class="register-line">
												<div class="register-name"><s:text name ="email"/></div>
												<div class="register-input">		            
											   	<s:textfield 
										     		id="email" 
										     		name="email" 
										     	/>
												</div>
											</div>
											<s:actionerror cssStyle="text-align:left;color:red"/> 						       
									        <div class="register-line">
												<div class="register-submit">
				            					<input type="button" value="submit" id="buttonReset"/>
												</div>
											</div>
										</form>
									    </div>  
		            			</div>
							</div>
						</div>
					</div>
			</div>
		</div>
		<br />
		<!-- begin: #footer -->
		<div id="footernav" class="FooterPages">
			<div class="container">
				<a href="/solutions/insurancesuite/">InsuranceSuite</a> <a
					href="/solutions/policycenter/">PolicyCenter</a> <a
					href="/solutions/billingcenter/">BillingCenter</a> <a
					href="/solutions/claimcenter/">ClaimCenter</a> <a
					href="/about-guhappy/">About GuHappy</a> <a
					href="/contact-us/global-offices/">Global Offices</a> <a
					href="/about-guidewire/careers/">Careers</a> <a
					href="/privacy-policy/">Privacy Policy</a> <a
					href="/legal-notices/">Legal Notices</a>
			</div>
		</div>
		<div id="footer">
			<table width="100%" border="0" cellspacing="0" cellpadding="0">
				<tr>
					<td colspan="2" style="height: 48px"><font face="Verdana"
						class="sm" size="1" color="Black"> <center> &nbsp;</center>
						<center> GuHappy - a real-time stock competition website<br>
							Copyright Â© 2011 - <script language=javascript>
								document.write((new Date()).getFullYear());
							</script> GuHappy Inc.<br> &nbsp;&nbsp;If you have any questions or
								comments, please send them to <a href="bingdi@guhappy.com">
									info@guhappy.com</a>
						</center> </font></td>
				</tr>
			</table>
		</div>
	</div>
</body>
</html>